﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace My.Core.Model.ViewModel
{
    /// <summary>
    /// 菜单管理列表
    /// </summary>
    public class FrameworkMensView
    {
        /// <summary>
        /// Id
        /// </summary>
        [Display(Name = "Id", Description = "")]
        public int Id { get; set; }


        /// <summary>
        /// 父ID
        /// </summary>
        [Display(Name = "父ID", Description = "")]
        public int? ParentId { get; set; }
        /// <summary>
        /// 页面名称
        /// </summary>
        [Display(Name = "页面名称", Description = "")]

        public string PageName { get; set; }
        /// <summary>
        /// 模块名称
        /// </summary>
        [Display(Name = "模块名称", Description = "")]

        public string ModuleName { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [Display(Name = "图标")]

        public string Icon { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]

        public int OrderSort { get; set; }
        /// <summary>
        /// /描述
        /// </summary>
        [Display(Name = "描述")]
        public string Description { get; set; }

        /// <summary>
        /// 是否是右侧菜单
        /// </summary>
        [Display(Name = "是否是右侧菜单")]
         public bool IsMenu { get; set; }


        /// <summary>
        /// 是否目录
        /// </summary>
        [Display(Name = "是否目录")]
        [DefaultValue(false)]
        public bool IsDir { get; set; }

        /// <summary>
        /// 层级
        /// </summary>
        [Display(Name = "层级")]
        public int Level { get; set; } = 0;
        /// <summary>
        /// 子级
        /// </summary>
        [Display(Name = "子级")]
        public List<FrameworkMensView> Childrens
        {
            get; set;
        }
    }
}
